#pragma once
/*********************************
*    BCC.h                        *
*	全局定义					 *
*********************************/


/*	单词编码 */
enum TokenCode
{
	TK_PLUS,
	TK_MINUS,
	TK_STAR,
	TK_DIV,
	TK_MOD,
	TK_EQ,
	TK_NEQ,
	TK_LT,				//<小于号
	TK_LEQ,				//<=
	TK_GT,				//>大于号
	TK_GEQ,				//>=
	TK_ASSIN,			//=赋值
	TK_POINTSTO,		//->指向
	TK_DOT,				//.
	TK_AND,				//&
	TK_OPENPA,			//(
	TK_CLOSEPA,			//)
	TK_OPENBR,			//[
	TK_CLOSEBR,			//]
	TK_BEGIN,			//{
	TK_END,				//}
	TK_SEMICILON,		//;
	TK_COMMA,			//,
	TK_ELLPI,			//...
	TK_EOF,				//文件结束

	TK_CINT,			//整型常量
	TK_CCHAR,			//字符常量
	TK_CSTR,			//字符串常量

	KW_CHAR,			//char关键字
	KW_SHORT,
	KW_INT,
	KW_VOID,
	KW_STRUCT,
	KW_IF,
	KW_ELSE,
	KW_FOR,
	KW_CONTINUE,
	KW_BREAK,
	KW_RETURN,
	KW_SIZEOF,

	KW_ALIGN,
	KW_CDECL,
	KW_STDCALL,

	TK_IDENTI,			//标识符

};

